Show:

ia.Panel Class

Extends ia.Widget
Defined in: ia\widgets\Panel.js:1
Module: ia

Creates a panel widget.

Constructor

ia.Panel

(
  • id
  • title
)

Parameters:

  • id String

    The id for the widget.

  • title String

    The widget title.

Methods

_build

() private

Builds the panel.

_size

() private

Resizes the panel elements when the panel size or header text have changed. This is the only way at the moment to make sure the content doesnt overflow its container.

addCssClass

(
  • cssClass
)

Adds a css class to the widget.

Parameters:

  • cssClass String

    The class to add eg. "ia-title-text".

append

(
  • obj
)

Appends an element to the panel content area.

Parameters:

  • obj JQUERY Element

    The jquery object.

appendToFooter

(
  • obj
)

Appends an element to the panel footer area.

Parameters:

  • obj JQUERY Element

    The jquery object.

closeable

(
  • isCloseable
)

Sets or gets if its closeable.

Parameters:

  • isCloseable Boolean

    true/false.

closeFunction

(
  • p
)

The close function.

Parameters:

exportable

(
  • isExportable
)

Sets or gets if its exportable.

Parameters:

  • isExportable Boolean

    true/false.

exportFunction

()

The export function.

hasSettings

(
  • hasSettings
)

Sets or gets if it has settings.

Parameters:

  • hasSettings Boolean

    true/false.

height

(
  • value
)

Get/Set the height.

Parameters:

  • value Number

    The value (% or px for images).

hide

()

Hides the widget.

maximize

()

Maximizes the component.

onclick

(
  • fnc
  • target
)

Set the function to call when the widget is clicked.

Parameters:

  • fnc Function

    Can be a javascript function or a src containing a link or a function such as "javascript:iaToggle(dataExplorer)".

  • target String

    The url target - used in conjunction with the onclick event. "blank" for a new window or tab, "self" for the current page, top for the topmost frame container, or "parent" for the parent of the current frame container. Default is "blank".

popup

(
  • isPopup
)

Sets or gets if its a popup - closes on a click outside the panel.

Parameters:

  • isPopup Boolean

    true/false.

resize

()

Resizes the panel.

resizeable

(
  • isResizeable
)

Sets or gets if its resizeable.

Parameters:

  • isResizeable Boolean

    true/false.

resizeFunction

(
  • p
)

The resize function.

Parameters:

restore

()

Restores to the current x, y, width, height.

setDimensions

(
  • x
  • y
  • width
  • height
  • xAnchor
  • yAnchor
)

Sets the dimensions.

Parameters:

  • x Number

    The x position.

  • y Number

    The y position.

  • width Number

    The width

  • height Number

    The height.

  • xAnchor String

    The anchor x - 'left' or 'right'.

  • yAnchor String

    The anchor y - 'top' or 'bottom'.

setPosition

(
  • x
  • y
  • xAnchor
  • yAnchor
)

Sets the position.

Parameters:

  • x Number

    The x position.

  • y Number

    The y position.

  • xAnchor String

    The anchor x - 'left' or 'right'.

  • yAnchor String

    The anchor y - 'top' or 'bottom'.

setSize

(
  • width
  • height
)

Sets the dimensions.

Parameters:

  • width Object

    The width.

  • height Object

    The height.

settingsFunction

()

The settings function.

show

()

Shows the widget.

text

(
  • text
)

Sets the content text.

Parameters:

  • text String

    The text.

title

(
  • text
)

Sets the title text.

Parameters:

  • text String

    The text.

toggle

()

Toggles the visibility.

tooltip

(
  • tip
)

Sets the tooltip.

Parameters:

  • tip String

    The tooltip text.

update

(
  • c
)

Updates the component configuration.

Parameters:

updateWidget

(
  • c
)

Updates the widget configuration.

Parameters:

visible

(
  • vis
)

Sets or gets the visibility.

Parameters:

  • vis Boolean

    The visibility.

width

(
  • value
)

Get/Set the width.

Parameters:

  • value Number

    The value (% or px for images).

x

(
  • value
)

Get/Set the x location.

Parameters:

  • value Number

    The value (%).

xAnchor

(
  • value
)

Get/Set the anchor x.

Parameters:

  • value Number

    The value

y

(
  • value
)

Get/Set the y location.

Parameters:

  • value Number

    The value (%).

yAnchor

(
  • value
)

Get/Set the anchor x.

Parameters:

  • value Number

    The value

zIndex

(
  • value
)

Get/Set the z index.

Parameters:

  • value Number

    The value

Properties

container

JQUERY Element

The container that holds the object.

content

JQUERY Element

The panel content container.

contentText

JQUERY Element

Allows text to be placed in the panel content.

header

JQUERY Element

The panel header.

id

String

The id.

Default: ""

name

String

The name.

Default: ""

rescale

Boolean

Resale.

Default: true